package com.quectel.core.module.propertybill.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author zhangheng
 * @email nolan.zhang@quectel.com
 * @date 2023/04/06 09:14
 */
@Data
@Schema
public class PropertyChargeableListDueDateDto implements Serializable {

    /**
     * id
     */
    @Schema(description = "id")
    private Long id;

    /**
     * 租户id
     */
    @Schema(description = "租户id")
    private Long tenantId;

    /**
     * 小区id
     */
    @Schema(description = "小区id")
    private Long villageId;

    /**
     * 房间id
     */
    @Schema(description = "房间id")
    private Long roomId;

    /**
     * 收费标准id
     */
    @Schema(description = "收费标准id")
    private Long chargeableListId;

    /**
     * 预期时间
     */
    @Schema(description = "逾期时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date dueDate;

    /**
     * 导入日期
     */
    @Schema(description = "导入日期")
    private Date importTime;

    /************非数据库字段 start ************/


    /**
     * 收费标准名称
     */
    @Schema(description = "收费标准名称")
    private String chargeableListName;

    /**
     * 收费标准dto
     */
    @Schema(description = "收费标准dto")
    private PropertyChargeableListDto chargeableListDto;

    /************非数据库字段 end **************/
}
